package com.kaifamiao.association.entity;

public class Employee {

    private Integer id ;
    private String name ;

    // 维护 从 Employee 到 Department 的 多对一 关联关系
    private Department department ; // 表示当前员工所在的部门

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Department getDepartment() {
        return department;
    }

    public void setDepartment(Department department) {
        this.department = department;
    }
}
